Get order
curl --request GET \
--url https://firespark.cloud/api/integrations/v1/orders/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://firespark.cloud/api/integrations/v1/orders/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://firespark.cloud/api/integrations/v1/orders/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://firespark.cloud/api/integrations/v1/orders/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://firespark.cloud/api/integrations/v1/orders/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://firespark.cloud/api/integrations/v1/orders/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://firespark.cloud/api/integrations/v1/orders/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"id": "ord-48291",
"brand_id": "0001",
"store_id": "downtown",
"channel_id": "app",
"customer_id": "cust-001",
"is_anonymous": false,
"fulfillment_id": "delivery",
"fulfillment_type": "DELIVERY",
"status": "OPEN",
"payment_status": "PAID",
"fulfillment_status": "PREPARING",
"lines": [],
"customer": {},
"payment_intents": [],
"totals": {
"currency": "USD",
"subtotal": 12.99,
"discount_rate": 0,
"discount_total": 0,
"tax_rate": 0.15,
"tax_total": 1.95,
"total": 14.94
},
"metadata": {},
"issued_at": "2026-06-17T14:31:45.000Z",
"resolved_at": null
}
}
Orders
Get order
Retrieve a full order by external id after a webhook or for reconciliation.
GET
/
orders
/
{id}
Get order
curl --request GET \
--url https://firespark.cloud/api/integrations/v1/orders/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://firespark.cloud/api/integrations/v1/orders/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://firespark.cloud/api/integrations/v1/orders/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://firespark.cloud/api/integrations/v1/orders/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://firespark.cloud/api/integrations/v1/orders/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://firespark.cloud/api/integrations/v1/orders/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://firespark.cloud/api/integrations/v1/orders/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"id": "ord-48291",
"brand_id": "0001",
"store_id": "downtown",
"channel_id": "app",
"customer_id": "cust-001",
"is_anonymous": false,
"fulfillment_id": "delivery",
"fulfillment_type": "DELIVERY",
"status": "OPEN",
"payment_status": "PAID",
"fulfillment_status": "PREPARING",
"lines": [],
"customer": {},
"payment_intents": [],
"totals": {
"currency": "USD",
"subtotal": 12.99,
"discount_rate": 0,
"discount_total": 0,
"tax_rate": 0.15,
"tax_total": 1.95,
"total": 14.94
},
"metadata": {},
"issued_at": "2026-06-17T14:31:45.000Z",
"resolved_at": null
}
}
Returns the complete order for the given external identifier. Use this endpoint when a webhook references an
order_id but does not include the full payload, or when you need to reconcile state between Fire spark and your POS.
Requires an access token with the
orders:read scope. See
Token to obtain a token.Path parameters
| Parameter | Required | Description |
|---|---|---|
id | Yes | External order identifier from the webhook or channel. Alphanumeric characters, _, and - only. 1–64 characters. |
Request
curl "https://firespark.cloud/api/integrations/v1/orders/ord-48291" \
-H "Authorization: Bearer ACCESS_TOKEN"
Response
The response wraps the order object indata.
{
"data": {
"uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"id": "ord-48291",
"brand_id": "0001",
"store_id": "downtown",
"channel_id": "app",
"customer_id": "cust-001",
"is_anonymous": false,
"fulfillment_id": "delivery",
"fulfillment_type": "DELIVERY",
"status": "OPEN",
"payment_status": "PAID",
"fulfillment_status": "PREPARING",
"lines": [],
"customer": {},
"payment_intents": [],
"totals": {
"currency": "USD",
"subtotal": 12.99,
"discount_rate": 0,
"discount_total": 0,
"tax_rate": 0.15,
"tax_total": 1.95,
"total": 14.94
},
"metadata": {},
"issued_at": "2026-06-17T14:31:45.000Z",
"resolved_at": null
}
}
Order object
| Field | Required | Type | Description |
|---|---|---|---|
uid | Yes | string (UUID) | Fire spark internal identifier |
id | Yes | string | External order identifier |
brand_id | No | string \ | null | External brand identifier when the order belongs to a brand |
store_id | Yes | string | External store where the order is prepared |
channel_id | Yes | string | External channel where the customer ordered |
customer_id | Yes | string | External customer identifier linked to the order |
is_anonymous | Yes | boolean | true when the customer checked out as a guest without a registered profile |
fulfillment_id | Yes | string | External fulfillment option selected |
fulfillment_type | Yes | string | Fulfillment type label (for example DELIVERY, PICKUP, DINE_IN) |
lines | Yes | array | Line items with pricing, tax, modifier hierarchy, and per-line metadata |
customer | Yes | object | Customer, delivery address, and billing details |
payment_intents | Yes | array | Payment attempts with method, provider, and status |
totals | Yes | object | Order-level subtotal, tax, discount, and total |
metadata | No | object | Partner-specific metadata. Defaults to {}. |
payment_status | Yes | string | IDLE, PENDING, PAID, FAILED, or REFUNDED |
fulfillment_status | Yes | string | IDLE, PREPARING, PREPARED, DELIVERING, DELIVERED, CANCELLED, or RETURNED |
status | Yes | string | OPEN, CLOSED, COMPLETED, CANCELLED, or REFUNDED |
issued_at | No | string | ISO 8601 datetime when the order was placed. Optional. |
resolved_at | No | string | ISO 8601 datetime when the order reached a terminal state. Optional. |
lines
lines
Each entry in
lines represents a product, fee, or modifier row:| Field | Required | Type | Description |
|---|---|---|---|
type | Yes | string | PRODUCT or FEE |
uid | Yes | string (UUID) | Fire spark internal line identifier |
id | Yes | string | External product or modifier identifier |
parent_uid | Yes | string (UUID) | null | Parent line uid for nested modifiers. null for root lines. |
parent_id | Yes | string | null | Parent line external id for nested modifiers. null for root lines. |
name | Yes | string | Display name on the ticket |
image_url | No | string | Product image URL. Optional. |
metadata | No | object | Partner-specific data for this line. Defaults to {}. |
quantity | Yes | number | Units ordered. Minimum 1. |
tax_rate | Yes | number | Tax rate as a decimal (for example 0.15) |
discount_rate | Yes | number | Discount rate as a decimal |
unit_subtotal | Yes | number | Subtotal for one unit, excluding children |
unit_discount | Yes | number | Discount for one unit |
unit_tax_total | Yes | number | Tax for one unit |
unit_total | Yes | number | Total for one unit |
subtotal | Yes | number | Line subtotal for quantity, excluding children |
discount_total | Yes | number | Line discount total |
tax_total | Yes | number | Line tax total |
total | Yes | number | Line total for quantity |
unit_group_* | Yes | number | Same pricing fields including all child lines at quantity 1 |
group_* | Yes | number | Same pricing fields including all child lines for quantity |
On
order.injected, Fire spark already
sends this object in the webhook payload. Use GET only when you need a fresh
copy or missed the webhook body.Error responses
| Status | Description |
|---|---|
401 | Missing or invalid access token |
403 | Token does not include the orders:read scope |
404 | No order exists for this id |
⌘I